package com.example.shop_2211.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.base.entity.OrderInfo
import com.example.shop_2211.R
import com.example.shop_2211.utils.GlideUtils

class OrderInfoAdapter:BaseQuickAdapter<OrderInfo,BaseViewHolder>(R.layout.item_order_info) {
    override fun convert(holder: BaseViewHolder, item: OrderInfo) {
        GlideUtils.loadImage(context,item.image,holder.getView(R.id.car_image))
        holder.setText(R.id.car_name,item.storeName)
        holder.setText(R.id.car_price,item.price)
        holder.setText(R.id.car_num,item.cartNum.toString())
    }
}